﻿@{
    ViewBag.Title = "ConfirmDialog";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<script src="/JsLib/G_JqEffect.js" type="text/javascript"></script>
<script type="text/javascript">
    var confirmDialog = new MyConfirmDialog("confirmBox1", "确认对话框", "这是一个确认对话框!", "small");

    $(document).ready(function () {
        $.ajaxSetup({ cache: false });

        confirmDialog.Init();

        $("input#btnTest").click(function () {
            delRecord("2");
        });
    });

    function delRecord(recId) {
        confirmDialog.Show();

        MyHandler.ConfirmFunc = function () {
            alert("记录:" + recId + "删除成功!");
        }
    }
</script>

<h2>Confirm Dialog</h2>
<br />
<h3>Path: @ViewBag.Path</h3>
<br />

<input id="btnTest" type="button" value="confirm" />











